#include "InputState.h"

InputState::InputState(bool LMBPressed, bool RMBPressed, int wheelPos, POINTS mouseDelta, POINTS mousePos, unsigned char* keys, float dTime) : 
	m_LMBPressed(LMBPressed),
	m_RMBPressed(RMBPressed),
	m_WheelPos(wheelPos),
	m_MouseDeltaPos(mouseDelta),
	m_MousePos(mousePos),
	m_dTime(dTime)
{
	memcpy_s(m_Keys, NUMKEYS, keys, NUMKEYS);
}

InputState::~InputState()
{
}

bool InputState::isKeyDown(int vKey) const
{
	if (m_Keys[vKey] & 0x80)
		return true;
	return false;
}

bool InputState::keyPressed(int vKey) const
{
	return false;
}

POINTS InputState::getMouseMovement() const
{
	return m_MouseDeltaPos;
}

POINTS InputState::getMousePos() const
{
	return m_MousePos;
}

short InputState::getWheelPos() const
{
	return m_WheelPos;
}
bool InputState::isLMBDown() const
{
	return m_LMBPressed;
}
bool InputState::isMMBDown() const
{
	return false;
}
bool InputState::isRMBDown() const
{
	return m_RMBPressed;
}
float InputState::getDeltaTime() const
{
	return m_dTime;
}